import {
  get,
  post,
  //postForm,
  del,
} from "@/utils/http";
const packageName = `/back-api`;

/**
 * 入库单
 */
// 获取入库单详情
export function getDataStockInOrderDetailPad(params) {
  return get(
    `${packageName}/dataStockInOrderDetail/getDataStockInOrderDetailPad`,
    params
  );
}
// 获取入库单列表(入库单id)
export function getDataStockInOrderDetailPads(params) {
  return get(
    `${packageName}/dataStockInOrderDetail/getDataStockInOrderDetailPads`,
    params
  );
}
// 保存入库单详情
export function saveDataStockInOrderDetailPad(params) {
  return post(
    `${packageName}/dataStockInOrderDetail/saveDataStockInOrderDetailPad`,
    params
  );
}
// 保存入库单
export function saveStockInOrderPad(params) {
  return post(
    `${packageName}/dataStockInOrderDetail/saveStockInOrderPad`,
    params
  );
}
// 删除入库单详情(平板)
export function delDataStockInOrderDetail(params) {
  return del(
    `${packageName}/dataStockInOrder/delDataStockInOrderDetail`,
    params
  );
}
/**
 * 入库记录
 */
// 获取入库单记录列表
export function getStockInOrderPadList(params) {
  return get(
    `${packageName}/dataStockInOrderDetail/getStockInOrderPadList`,
    params
  );
}
// 获取入库单记录详情
export function getStockInOrderDetailPad(params) {
  return get(
    `${packageName}/dataStockInOrderDetail/getStockInOrderDetailPad`,
    params
  );
}
// 审核入库单
export function approveStockInOrderPad(params) {
  return post(
    `${packageName}/dataStockInOrderDetail/approveStockInOrderPad`,
    params
  );
}

/**
 * 鱼批次
 */
// 获取全部鱼批次（公司id）
export function getObjFishBatchs(params) {
  return get(`${packageName}/objFishBatch/getObjFishBatchs`, params);
}
/**
 * 鱼类型
 */
// 获取全部鱼类型（公司id）
export function getObjFishTypes(params) {
  return get(`${packageName}/ObjFishType/getObjFishTypes`, params);
}
/**
 * 鱼档案
 */
// 获取全部鱼档案（公司id）
export function getObjFishs(params) {
  return get(`${packageName}/objFish/getObjFishs`, params);
}

/**
 * 出入库类型
 */
// 获取全部出入库类型（公司id）
export function getObjInOutTypes(params) {
  return get(`${packageName}/objInOutType/getObjInOutTypes`, params);
}

/**
 * 出库单
 */
// 获取出库单详情(出库单id)
export function getDataStockOutOrderDetailPads(params) {
  return get(
    `${packageName}/dataStockOutOrderDetail/getDataStockOutOrderDetailPads`,
    params
  );
}
// 获取出库单详情(出库单id)
export function getDataStockOutOrderDetailPad(params) {
  return get(
    `${packageName}/dataStockOutOrderDetail/getDataStockOutOrderDetailPad`,
    params
  );
}
// 保存出库单详情
export function saveDataStockOutOrderDetailPad(params) {
  return post(
    `${packageName}/dataStockOutOrderDetail/saveDataStockOutOrderDetailPad`,
    params
  );
}
// 保存出库单
export function saveStockOutOrderPad(params) {
  return post(
    `${packageName}/dataStockOutOrderDetail/saveStockOutOrderPad`,
    params
  );
}
// 删除出库单详情(平板)
export function delDataStockOutOrderDetail(params) {
  return del(
    `${packageName}/dataStockOutOrder/delDataStockOutOrderDetail`,
    params
  );
}
/**
 * 出库记录
 */
// 获取出库单记录列表
export function getStockOutOrderPadList(params) {
  return get(
    `${packageName}/dataStockOutOrderDetail/getStockOutOrderPadList`,
    params
  );
}
// 获取出库单记录详情
export function getStockOutOrderDetailPad(params) {
  return get(
    `${packageName}/dataStockOutOrderDetail/getStockOutOrderDetailPad`,
    params
  );
}
// 审核出库单
export function approveStockOutOrderPad(params) {
  return post(
    `${packageName}/dataStockOutOrderDetail/approveStockOutOrderPad`,
    params
  );
}

//获取出库单列表
export function getDataStockOutOrderList(params) {
  return get(
    `${packageName}/dataStockOutOrder/getDataStockOutOrderList`,
    params
  );
}
//获取出库单详情列表
export function getDataStockOutOrderDetailList(params) {
  return get(
    `${packageName}/dataStockOutOrder/getDataStockOutOrderDetailList`,
    params
  );
}
//导出出库单列表
export function exportDataStockOutOrderList(params) {
  return post(
    `${packageName}/dataStockOutOrder/exportDataStockOutOrderList`,
    params
  );
}
//导出出库单详情列表
export function exportDataStockOutOrderDetailList(params) {
  return post(
    `${packageName}/dataStockOutOrder/exportDataStockOutOrderDetailList`,
    params
  );
}
// 弃审核
export function giveUpApproveDataStockInOrder(params) {
  return post(
    `${packageName}/dataStockInOrder/giveUpApproveDataStockInOrder`,
    params
  );
}
// 弃审核
export function giveUpApproveDataStockOutOrder(params) {
  return post(
    `${packageName}/dataStockOutOrder/giveUpApproveDataStockOutOrder`,
    params
  );
}
